
#ifndef __BTREE_H__
#define __BTREE_H__
#include "stdlib.h"
#include "stdio.h"
#include "stdint.h"
#include "string.h"
#include "stdbool.h"

// 定义二叉树结构
typedef struct btree_t
{
    int key;
    struct btree_t *left;
    struct btree_t *right;
    void *value;

} btree_t;

typedef enum
{
    BTREE_FAIL = -1,
    BTREE_SUCCESS = 0,
    BTREE_NOT_FOUND = 1,

} btree_result_e;

#endif